package com.eian.boot.module.system.associations.user.post.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

import java.util.List;

/**
 * 用户岗位分配事件
 * 当用户被分配岗位时触发
 *
 * @author alex.meng
 * @since 1.0.0
 */
@Getter
public class UserPostAssignedEvent extends ApplicationEvent {

    private final Long userId;
    private final List<Long> postIds;

    public UserPostAssignedEvent(Object source, Long userId, List<Long> postIds) {
        super(source);
        this.userId = userId;
        this.postIds = postIds;
    }
}

